package com.example.demo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;;

import com.example.demo.pojo.Legend;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
@Repository
public interface LegendMapper extends BaseMapper<Legend> {
    @Select("SELECT * FROM LEGEND WHERE legend_name like CONCAT('%',#{legendName},'%') ")
    List<Legend> getLegend(@Param("legendName") String legendName);
}
